package com.yuexin.ab;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.umeng.comm.core.CommunitySDK;
import com.umeng.comm.core.impl.CommunityFactory;
import com.umeng.socialize.sso.UMQQSsoHandler;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        String appId = "1105208598";
        String appKey = "jjFF4Dq2hrkzl3vF";
        new UMQQSsoHandler(this, appId, appKey).addToSocialSDK();

        // 获取CommunitySDK实例, 参数1为Context类型
        CommunitySDK mCommSDK = CommunityFactory.getCommSDK(this);
        // 打开微社区的接口, 参数1为Context类型
        mCommSDK.openCommunity(this);
        //setContentView(R.layout.activity_main);
    }

}
